package com.cloud.admin.feign.fallback;

import com.cloud.admin.beans.dto.UserDTO;
import com.cloud.admin.beans.po.User;
import com.cloud.admin.feign.IUserService;
import com.cloud.common.base.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class UserServiceFallback implements IUserService {

    @Override
    public Result<UserDTO> info(String username) {
        return null;
    }

    @Override
    public Result<UserDTO> infoByMobile(String mobile) {
        log.info("接口异常:{}", mobile);
        UserDTO userDTO = new UserDTO();
        userDTO.setPhone(mobile);
        return Result.success(userDTO);
    }
}
